import request from '@/utils/request'

// 查询仓库托盘列表
export function listPallet(query) {
  return request({
    url: '/system_setting/pallet/list',
    method: 'get',
    params: query
  })
}

// 查询仓库托盘详细
export function getPallet(palletId) {
  return request({
    url: '/system_setting/pallet/' + palletId,
    method: 'get'
  })
}

// 新增仓库托盘
export function addPallet(data) {
  return request({
    url: '/system_setting/pallet',
    method: 'post',
    data: data
  })
}

// 修改仓库托盘
export function updatePallet(data) {
  return request({
    url: '/system_setting/pallet',
    method: 'put',
    data: data
  })
}

// 删除仓库托盘
export function delPallet(palletId) {
  return request({
    url: '/system_setting/pallet/' + palletId,
    method: 'delete'
  })
}
